package com.aaa.dao;

import com.aaa.pojo.SysBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SysBankDao {
    //根据id查询银行
    @Select("select * from sys_bank where b_id=#{b_id}")
    SysBank selByBid(Integer b_id);
    //查询所有银行
    @Select("select * from sys_bank")
    List<SysBank> selAllBank();
}
